import spock.lang.Specification

/**
 * Created at 2017/10/13 19:30
 * @author gongweixin
 */
class ToNumberExample extends Specification {
    def "test String to Number"() {
        expect:
        1 == "01".toLong()
    }

    def "test double to int"() {
        expect:
        0 == 0.975 as int
        1 == Math.ceil(0.975) as int
    }
}
